package com.chenfan.magic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author troy
 */
@Data
@TableName("idc_datasource_stat")
@ApiModel(value = "DatasourceStat对象", description = "DatasourceStat对象")
public class IdcDatasourceStat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "数据库类型")
    private String dbType;

    @ApiModelProperty(value = "数据库链接")
    private String url;

    @ApiModelProperty(value = "临时名称")
    private String name;

    @ApiModelProperty(value = "连接用户")
    private String username;

    @ApiModelProperty(value = "监控细节")
    private String statDetails;

    @ApiModelProperty(value = "记录时间")
    private Date recordTime;

}
